const { axios } = require('../../../utils/http')

Page({
  data: {
    pdfList: []
  },
  onShow() {
    this.getPdfList()
  },
  getPdfList() {
    axios.get('/pdf/search').then(res => {
      res.data.error === -1 &&
        this.setData({
          pdfList: res.data.data
        })
    })
  }
})
